$('body').on('click', '.main>button', () => {
    var a = $('.dynamic-navigation');
    a && (a.attr("tg") ? (a.animate({
        left: 0,
        opacity: "show"
    }, 500), a.removeAttr("tg")) : (a.animate({
        left: -200,
        opacity: "show"
    }, 500), a.attr("tg", "1")))
});